Repository navigation
docs(databricks): amend-and-build runs the dbt job and waits for it (forge-cli#861) - #207
Merged
Merged
Conversation
…forge-cli#861) Document forge-cli #861: on Databricks, --mode amend-and-build and replace-and-build start a run of a dbt build's provisioned job, wait for it and fail the apply when it fails. Covers the modes, how the job is found, what the run leaves alone, the output, the wait cap FLUID_DATABRICKS_RUN_TIMEOUT_SECONDS and cancellation, the missing-SDK refusal, --dry-run and building an estate in lineage order. Every new sentence carries the branch marker: #861 is not merged yet. The Prerequisites row no longer says only fluid verify needs the [databricks] extra; apply needs it for masks and DuckDB landing too.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents forge-cli #861: on Databricks,
fluid apply --mode amend-and-buildand--mode replace-and-buildnow start a run of a dbt build's provisioned job and wait for it, andFLUID_DATABRICKS_RUN_TIMEOUT_SECONDScaps the wait.providers/databricks.md: a new section, Running the job fromfluid apply. It covers:--build-id, continuous jobs;--full-refreshfor that run only);nohup; a run that cannot be read;--dry-run;[databricks]extra;manualtrigger row;providers/README.md: the Databricks summary cell.cli/apply.md: a build-phase paragraph and theapply_databricks_sdk_missingrow.advanced/environment-variables.md: the new variable.advanced/error-codes.md: the code is not catalogued.advanced/operating-in-ci.md: the CI job waits, and a cancel cancels the run.upgrading.md: a "Not in a release yet" entry.Fixed in passing: the Prerequisites row said "Only
fluid verifyneeds" the[databricks]extra. Since 0.27.0,fluid applyneeds it as well, to bind column masks and row filters and to land a DuckDB acquisition. The page's own masks section already said so for masks.Markers
Every new sentence carries the branch form, because #861 is not merged: On forge-cli's feat/databricks-build-run-now branch (forge-cli #861), not yet on
mainor in a release.cd65af29. Later heads change nothing this PR documents:a96a3636changes one comment and one test.77715548merges main (forge-cli #860 Unity Catalog keys, #862). It routes the build phase throughbuild_after_apply, which keeps the exit code.fluid_keystask adds its own timeout to the wait cap, as the per-task formula says.mainform, and keep the "Not in a release yet" heading in upgrading.md.Output samples
…, and the wrapped error line is joined.QUEUED - ...reason lines: taken from the code. They were not seen live, and the page says so.Checks
On the pinned CLI 0.29.0, Python 3.11:
scripts/check_cli_docs.py, also with--version-onlyand--markers-only(withFORGE_CLI_CHANGELOGset to forge-cli main's CHANGELOG): OK.scripts/check_providers.py: OK.scripts/gen_contract_reference.py --check: OK.npm ci && npm run docs:build && node scripts/check-dist-links.mjs: build OK, links clean. Every new#anchortarget exists in the builtproviders/databricks.html.v0.29.0.--dry-runand continuous builds;apply_databricks_sdk_missingfor real, and the dry-run lines and the 12300 s cap in code.Not in this PR
fluid doctorstill says databricks-sdk is "needed byfluid verifyonly" (fluid_build/cli/doctor.py). That has not been true since 0.27.0, and #861 adds the build phase. It is a forge-cli fix.cli/apply.md's "Which engine runs" table listsaws,gcp,snowflakeandconfluentfor OpenTofu, notdatabricks.